package com.zzc.mapper;

import com.zzc.pojo.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKeyWithBLOBs(Customer record);

    int updateByPrimaryKey(Customer record);

    /**
     * 动态查询客户信息
     * @param name
     * @param state
     * @return
     */
    List<Customer> getCustomer(@Param("name") String name,@Param("state") Integer state);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    int deleteById(Integer[] ids);
}